<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page import="com.crm.entity.Opportunity,com.crm.entity.Supplier,java.util.*" %>
<%@page import="java.util.List,com.crm.entity.Parts,com.crm.entity.Quotation,com.crm.beans.NewQuotVO" %>

<head>
<script language="JavaScript" src="<%=application.getContextPath()%>/js/gen_validatorv4.js"
    type="text/javascript" ></script>
<script  type="text/javascript" src="<%=application.getContextPath()%>/js/jquery-1.6.min.js"></script> 
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery.validate.js"></script>	
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery.validate.min.js"></script>	
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<link href="<%=application.getContextPath()%>/css/css-crm.css" rel="stylesheet" type="text/css" />
<script>

function open_new_window(url) {
	  window.open(url,"some_name","width=500,height=300,left=200,top=10");
	}

    function previewUrl(url1,target){
        //use timeout coz mousehover fires several times
        clearTimeout(window.ht);
        window.ht = setTimeout(function(){
            var div = document.getElementById(target);
            div.innerHTML = '<iframe style="float:left; width:978px;height:500px;" frameborder="0" src="'+ url1 + '" />';
            },20);      
    }   
</script>

 <script type="text/javascript">
function quotclick(){
	var refid=$('#reflistid option:selected').val();
	
	if(refid!="Please Select"){
	var data="refno="+refid;
	$.ajax({
		url:"<%=application.getContextPath()%>/newquot/getquot.do",
		mimetype: "text/html",
		method: "post",
		data:data,
		cache:false,
		success: function(res){
			$('#quotdiv').html(res);
			
			}
		});
	}else{
		alert("Please Select A Reference Number");
		return false;
	}
}



    </script> 
     <%
    String techbid=(String)request.getAttribute("techbidno");
   String QuotNo=(String)request.getAttribute("genQuotNo"); %>
</head>
<body onload="previewUrl('<%=application.getContextPath() %>/newquot/get_history.do?quotid=<%=QuotNo%>','div1')" >
<%List<Opportunity> opprtlist =(List<Opportunity>)request.getAttribute("opprtunity");%>
<div id="main">
   <%@ include file="common/header.jsp" %>
  <%@ include file="common/submenu.jsp" %>
    <div id="resultMsg" align="center" class="result_msg" style=" background-color: white" >
    &nbsp;&nbsp;
    <% 
    	if(request.getAttribute("resmsg")!=null){
    		String msg=(String)request.getAttribute("resmsg");
    		out.println(msg.toString());	
    	}
    	
    %>
    <%if(techbid!=null)
    	{%>
    <a class="linkclass" href="<%=application.getContextPath() %>/newquot/get_techbid.do?quotid=<%=QuotNo%>">Click Here To view Technical Bid</a> 
    	<%}
    	%>
    
    </div> 
    <div id="div1"  class="quotdiv"> </div> 
    <!-- InstanceEndEditable -->
    <div id="footer1"></div>  
</div>
</body>
<!-- InstanceEnd --></html>

